package com.gxa.jjty.core.common;

/**
 * 异常状态编码和信息枚举
 * @author NITRO
 */

public enum ExceptionCode {
    //枚举就是类型，其中值是先声明好的
    SERVER("50000","服务器开小差了，请稍后再试"),
    LOGIN_FAILED("50001","登录失败，请检查用户名或密码是否正确"),
    DUPLICATE_USERNAME("50002","该名称已存在,请换一个"),
    ADD_DEFEATED("50003","添加失败"),
    DELETE_DEFEATED("50004","没有该用户"),
    NODATA("50005","没有数据"),
    BAD_PHONE("50006","手机号不合法"),
    SMS_SMS_FALSE("50007","短信发送失败，请稍后再试"),
    PHONE_ISUSED("50008","注册失败，手机号已被使用，请更换手机号"),
    CAPTCHA_FALSE("50009","验证码不正确"),
    WRONG("50010","没有权限"),
    LOGIN_FALSE("50011","登录失败，请重新输入"),
    NOT_NULL("50012","不能为空"),
    GET_FALSE("50013","领取失败，每个用户只能领取一次相同类型优惠券"),
    UPDATE_FALSE("50014","修改失败"),
    DELETE_FALSE("50015","删除失败"),
    DUPLICATE_ROlE_NAME("50016","角色已存在" ),
    DUPLICATE_CUSTOMER("50017","客户已存在,请勿重复添加" ),
    NO_CUSTOMER("50018","客户不存在" ),
    DUPLICATE_DISCOUNT("50019","折扣已存在,请勿重复添加" ),
    NO_DISCOUNT("50020","折扣不存在" ),
    NO_STORAGE("50021","库存不存在" ),
    NO_VIPCARD("50022","会员卡不存在" ),
    DUPLICATE_VIPCARD("50023","会员卡已存在,请勿重复添加" ),
    SECKILL_FAILED("50024","该订单已被接取"),
    LOCK_FAILED("50025","系统繁忙,重新操作"),
    ERROR("50026","非法操作"),
    REARSON_NULL("50027","提交失败，理由不能为空"),
    WRONG_CODE("500028","短信验证码不能为空，或者已失效"),
    WRONG_CODE_FAILED("500029","短信验证码不正确"),
    ERROR_USER_STATE("500230","用户状态异常，请联系管理员"),
    NOT_REPETITION("500231","新密码不能与旧密码不能一样"),
    PWD_NOT_NULL("500232","密码不能为空"),
    NEWPWD_NOT_NULL("500234","新密码不能为空"),
    ERROR_PWD("500235","密码校验失败"),
    TORDER_NULL("50036","订单已失效"),
    REFUND_FALSE("50037","你不能退款"),
    ERROR_ORDER_STATE("50038","订单状态错误"),
    ADDRESS_NOT_EXIST("50040","地址不存在"),
    CONCERNED_FAILED("51001","关注失败!"),
    ID_NOTNULL("51002","id不能为空"),
    FEEDBACK_FALSE("51003","反馈失败"),
    CONTENT_NOTNULL("51002","内容不能为空"),
    NOT_PHONE("51050","该手机号未绑定用户"),
    WRONG_IMG("51051","最多上传3张图片!"),
    WRONG_IMG_SIZE("51052","图片大小不能超过1M!"),
    NOT_LOGIN("51053","没有权限，请登录!"),

    APP_NO_EXIST("51004","该服务不存在"),
    SCORE_NO_EXIST("51005","该分值不存在"),
    SETTLEMENT_FAILURES("51006","结算失败"),
    FREE_NULL("50039","你的免费次数已用完，请选择其他支付方式")
    ;




    private String code;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ExceptionCode(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
